package com.topvision.jack.uploadlibrary.entity;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Transient;
import org.greenrobot.greendao.annotation.Unique;

import java.util.Map;

/**
 * Created by Administrator on 2017/11/29.
 */

@Entity
public class UploadFileEntity {
    @Id(autoincrement = true)
    Long id;
    @Unique
    String fileName;
    @Unique
    String filePath;
    int blockLength;
    @Transient
    Map<String, String> data;
    public int getBlockLength() {
        return this.blockLength;
    }
    public void setBlockLength(int blockLength) {
        this.blockLength = blockLength;
    }
    public String getFilePath() {
        return this.filePath;
    }
    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }
    public String getFileName() {
        return this.fileName;
    }
    public void setFileName(String fileName) {
        this.fileName = fileName;
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    @Generated(hash = 1488453724)
    public UploadFileEntity(Long id, String fileName, String filePath,
            int blockLength) {
        this.id = id;
        this.fileName = fileName;
        this.filePath = filePath;
        this.blockLength = blockLength;
    }
    @Generated(hash = 1994279916)
    public UploadFileEntity() {
    }

    public UploadFileEntity(String fileName, String filePath, int blockLength) {
        this.fileName = fileName;
        this.filePath = filePath;
        this.blockLength = blockLength;
    }

    public UploadFileEntity(String filePath, int blockLength) {
        this.filePath = filePath;
        this.blockLength = blockLength;
    }

    public Map<String, String> getData() {
        return data;
    }

    public void setData(Map<String, String> data) {
        this.data = data;
    }
}
